package com.chinasoft.tw.service.MaYun;

import com.chinasoft.tw.pojo.Info;
import com.chinasoft.tw.service.TrueWord;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class MyTrue implements TrueWord {
    String name;
    List<String> wordList = new ArrayList<>();
    Random random = new Random();

    public MyTrue() {
        this.name = "tony 马";
        wordList.add("我不喜欢钱 ，我对钱不感兴趣！");
        wordList.add("阿里阿里巴巴，阿里巴巴是个快乐的青年~");
        wordList.add("还会看电视，还会吃苹果，还会开发5G！");
    }
    @Override
    public Info getTrueWord() {
        Info info = new Info(name, wordList.get(random.nextInt(wordList.size())));
        return info;
    }
}
